package com.ios.dto;

import com.ios.entity.PsychologicalTestType;
import com.ios.enums.PsychologicalTestEnum;

import java.util.List;

/**
*@Author:WenTao
*@Description:心理测试中间返回类型
*@Date:11:02 2018/7/20
*/
public class PsychologicalTestTypeExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*测试类型list*/
    private List<PsychologicalTestType> psychologicalTestTypeList;

    /*操作失败时的构造器*/
    public PsychologicalTestTypeExecution(PsychologicalTestEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public PsychologicalTestTypeExecution(PsychologicalTestEnum stateEnum, List<PsychologicalTestType> psychologicalTestTypeList){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.psychologicalTestTypeList=psychologicalTestTypeList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public List<PsychologicalTestType> getPsychologicalTestTypeList() {
        return psychologicalTestTypeList;
    }

    public void setPsychologicalTestTypeList(List<PsychologicalTestType> psychologicalTestTypeList) {
        this.psychologicalTestTypeList = psychologicalTestTypeList;
    }
}
